package project.taobao.microsoft.transaction.provider.one.service;


import org.apache.ibatis.annotations.Param;
import project.taobao.microsoft.transaction.api.pojo.Order;
import project.taobao.microsoft.transaction.api.pojo.OrderExample;
import project.taobao.microsoft.transaction.api.pojo.OrderItem;

import java.util.List;

/**
 * @author yhq
 * @date 2020/8/26 10:20
 */
public interface OrderService {
    // methods
    long countByExample(OrderExample example);

    int deleteByExample(OrderExample example);

    int deleteByPrimaryKey(Long id);

    int insert(Order record);

    Order insertWithReturn(Order record);

    int insertSelective(Order record);

    List<Order> selectByExample(OrderExample example);

    Order selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") Order record, @Param("example") OrderExample example);

    int updateByExample(@Param("record") Order record, @Param("example") OrderExample example);

    int updateByPrimaryKeySelective(Order record);

    int updateByPrimaryKey(Order record);
    // getters, setters

    // constructors
}
